#include <iostream>
#include "EmployeePay.cpp"
using namespace std;
int main()
{
	EmployeePay test;
	struct Emp_n test_n;
	struct Emp_d test_d;
	int test_p;
	float test_s;
	char *name = new char[50];
	char buffer[5];
	cout<<"Input the employee's name:";
	cin>>name;
	cout<<"The number:";
	cin>>buffer;
	test_n.ch=buffer[4];
	test_n.num=(buffer[0]-'0')*100+(buffer[1]-'0')*10+(buffer[2]-'0');
	cout<<"The date:";
	cin>>test_d.year>>test_d.month>>test_d.day;
	cout<<"The salary:";
	cin>>test_s;
	cout<<"The department number";
	cin>>test_p;
	test.setInformation(name, test_n, test_d, test_s, test_p);
	test.getInformation();
	return 0;
}